package cn.iocoder.yudao.module.wms.controller.admin.doc.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.*;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Schema(description = "管理后台 - 仓储单据新增/修改 Request VO")
@Data
public class DocSaveReqVO {

    @Schema(description = "序号", requiredMode = Schema.RequiredMode.REQUIRED, example = "6182")
    private Long id;

    @Schema(description = "名称", requiredMode = Schema.RequiredMode.REQUIRED, example = "芋艿")
    @NotEmpty(message = "名称不能为空")
    private String name;

    @Schema(description = "编号", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编号不能为空")
    private String code;

    @Schema(description = "单据类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "2")
    @NotEmpty(message = "单据类型不能为空")
    private String docType;

    @Schema(description = "编码前缀", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotEmpty(message = "编码前缀不能为空")
    private String docNoPrefix;

    @Schema(description = "编码类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "编码类型不能为空")
    private Integer docNoType;

    @Schema(description = "流水号位数", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "流水号位数不能为空")
    private Integer docNoLength;

    @Schema(description = "交易类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "交易类型不能为空")
    private Integer transactionType;

    @Schema(description = "控制超入", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "控制超入不能为空")
    private Integer controlAcceptOevr;

    @Schema(description = "控制缺入", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "控制缺入不能为空")
    private Integer controlAcceptShort;

    @Schema(description = "控制超领", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "控制超领不能为空")
    private Integer controlIssueOevr;

    @Schema(description = "控制缺领", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "控制缺领不能为空")
    private Integer controlIssueShort;

    @Schema(description = "自动审核", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "自动审核不能为空")
    private Integer autoApprove;

    @Schema(description = "打印模板", example = "14888")
    private Long printId;

    @Schema(description = "状态", requiredMode = Schema.RequiredMode.REQUIRED, example = "1")
    @NotNull(message = "状态不能为空")
    private Integer status;

    @Schema(description = "显示顺序", requiredMode = Schema.RequiredMode.REQUIRED)
    @NotNull(message = "显示顺序不能为空")
    private Integer sort;

    @Schema(description = "备注", example = "你猜")
    private String remark;

}